<?php
$id=$_GET['id'];

$sql="delete from dm_sanpham_loai where id=".$id;
mysql_query($sql);
echo'<script>window.location="?action=sanpham_loai";</script>';
?>